﻿@model Downloader.Framework.Queries.RecordList<Downloader.Web.Controllers.ViewModels.ArticleContentViewModel>
<table id="tbdatalist" pageindex="@Model.PageIndex" pagecount="@Model.PageCount" pagesize="@Model.PageSize" style="width: 99%;">
    <tr style="background-color: silver;">
        <td>序号
        </td>
        <td>key
        </td>
        <td>标题
        </td>
        <td>副标题
        </td>
        <td>介绍
        </td>
        <td>操作
        </td>
    </tr>
    @{ 
        var i = 0;
        foreach (var category in Model.Data)
        {
        <tr style="text-align: center">
            <td>@(i + 1)
            </td>
            <td>@category.Id
            </td>
            <td>@category.Title
            </td>
            <td>@category.SubTitle
            </td>
            <td>@category.Introduction
            </td>
            <td>@Html.ActionLink("编辑", "Edit", "Article", new { id = category.Id }, new { @class = "edit" })
                @Html.ActionLink("删除", "Dele", "Article", new { id = category.Id }, new { @class = "dele" })
            </td>
        </tr>
            i++;
        }
    }
</table>
